import { uuidGenerator } from '@/utils/common'
import $ from 'jquery'
import { createApp } from 'vue'
import App from './App.vue'
import init from './init'

const uuid = uuidGenerator()

$('body').append(`<div id="lb-plugin-content-wrapper-${uuid}"></div>`)

const app = createApp(App)
init(app).then(() => {
  app.mount(`#lb-plugin-content-wrapper-${uuid}`)
})
